﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.Domain.Model.User
{
    /// <summary>
    /// 角色信息表
    /// </summary>
    [Table("Roles")]
    public class Roles:Audit
    {
        /// <summary>
        /// 角色编号
        /// </summary>
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        [Required]
        [Display(Name ="角色名称")]
        public string RoleName { get; set; }
        /// <summary>
        /// 角色介绍
        /// </summary>
        [Required]
        [Display(Name ="角色介绍")]
        public string RoleDescription { get; set; }
        [Required]
        [Display(Name ="角色状态")]
        public bool RoleStart { get; set; }
        
    }
}
